package jdbc.test;

import jdbc.DBUtil;
import jdbc.dao.StudentDao;
import jdbc.dao.StudentDaoI;
import jdbc.entity.Student;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class DaoTest2 {
    public static void main(String[] args) {
        List<Student> query = DBUtil.query("select * from s_student limit ?,?", Student.class, 10, 15);
        query.forEach(System.out::println);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        StudentDaoI studentDao=new StudentDao();
        List<Student> list = studentDao.search(1, 10, "李", "1", "13");
        list.stream().forEach(System.out::println);
    }
}
